/**
 * 功能描述
 */

define(function (require, exports, module) {
	var Subnav = require("subnav");
	var aw = require("ajaxwrapper");
    var instance = {
        initComponent: function (params,widget) {
        	var subnav = new Subnav({
        		parentNode:".J-subnav",
        		model:{
        			title:"员工用餐统计",
        			items:[{
						id : "grantDate",
						type : "daterange",
						tip:"发卡日期",
						ranges : {
			                "本月": [moment().startOf("month"), moment().endOf("month")]
						},
						defaultRange: "本月",
						handler : function(time){
							 widget.get("grid").refresh();
						}
					}]
        		}
        	});
        	widget.set("subnav",subnav);
        }
    };
    module.exports = instance;
});
